const mongoose = require('mongoose');

const AdminDailyReportSchema = new mongoose.Schema({
  reportId: { type: String, required: true, unique: true },
  title: { type: String, required: true },
  content: { type: String, required: true },
  creatorId: { type: String, required: true },
  creatorName: { type: String },
  status: { type: Number, default: 0 }, // 0-未提交 1-已提交
  createTime: { type: Date, default: Date.now },
  updateTime: { type: Date, default: Date.now },
  flag: { type: Boolean, default: true }// 逻辑删除
});

module.exports = mongoose.model('AdminDailyReport', AdminDailyReportSchema);